
import request from '@/api/request'

export function findAllBrand() {
  return request({
    url: '/lejuAdmin/brand/findAllBrand'

  })
}
export function productsByPage(start, limit, data) {
  return request({
    url: `/lejuAdmin/product/productsByPage/${start}/${limit}`,
    method: 'post',
    data

  })
}
/**
 * 获取商品分类
 * @returns
 */
export function getAllCategory() {
  return request({
    url: `/lejuAdmin/category/getAllCategory`

  })
}
export function addProductAndSkus(data) {
  return request({
    url: `/lejuAdmin/product/addProductAndSkus`,
    method: 'post',
    data

  })
}
export function productSkusDetail(id) {
  return request({
    url: `/lejuAdmin/product/productSkusDetail/${id}`

  })
}

